<?php
  $kategorie_get="select kat from kategorie order by kat";
  $kategorie_p=mysql_query($kategorie_get);

  echo '<select title="Kategorie" name="kategorie" value="<?php echo "$kategorie";?>">';
for($index=0;$index<mysql_num_rows($kategorie_p);$index++) {
     $volba = mysql_fetch_row($kategorie_p);
     if($kategorie==$volba[0])
        echo "<option selected>$volba[0] </option>";
     else
        echo "<option>$volba[0] </option>";
}
  echo '</select>';

?>
